package com.linkage.lcims.base.po.cdma;


import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="C_USER00"
 *     
*/
public class CUser implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** identifier field */
    private String username;

    /** nullable persistent field */
    private String realm;

    /** nullable persistent field */
    private String password;

    /** nullable persistent field */
    private Integer passwordtype;

    /** persistent field */
    private Integer groupid;

    /** nullable persistent field */
    private Integer allowiptech;

    /** nullable persistent field */
    private String areano;

    /** nullable persistent field */
    private Integer bindtype;

    /** nullable persistent field */
    private Integer status;

    /** nullable persistent field */
    private String authorattr;

    /** nullable persistent field */
    private String mnhakey;

    /** nullable persistent field */
    private Integer noauthflag;

    /** nullable persistent field */
    private String imsi;

    /** nullable persistent field */
    private String mdn;

    /** nullable persistent field */
    private Integer usertype;

    /** nullable persistent field */
    private Integer chargetype;

    /** nullable persistent field */
    private Integer balance;

    /** nullable persistent field */
    private String framedip;

    /** nullable persistent field */
    private String ippool;

    /** nullable persistent field */
    private Integer roamlevel;

    /** nullable persistent field */
    private Integer limitusers;

    /** persistent field */
    private Date opendate;

    /** persistent field */
    private String openoperator;

    /** nullable persistent field */
    private Date moddate;

    /** nullable persistent field */
    private String modoperator;

    /** full constructor */
    public CUser(String username, String realm, String password, Integer passwordtype, Integer groupid, Integer allowiptech, String areano, Integer bindtype, Integer status, String authorattr, String mnhakey, Integer noauthflag, String imsi, String mdn, Integer usertype, Integer chargetype, Integer balance, String framedip, String ippool, Integer roamlevel, Integer limitusers, Date opendate, String openoperator, Date moddate, String modoperator) {
        this.username = username;
        this.realm = realm;
        this.password = password;
        this.passwordtype = passwordtype;
        this.groupid = groupid;
        this.allowiptech = allowiptech;
        this.areano = areano;
        this.bindtype = bindtype;
        this.status = status;
        this.authorattr = authorattr;
        this.mnhakey = mnhakey;
        this.noauthflag = noauthflag;
        this.imsi = imsi;
        this.mdn = mdn;
        this.usertype = usertype;
        this.chargetype = chargetype;
        this.balance = balance;
        this.framedip = framedip;
        this.ippool = ippool;
        this.roamlevel = roamlevel;
        this.limitusers = limitusers;
        this.opendate = opendate;
        this.openoperator = openoperator;
        this.moddate = moddate;
        this.modoperator = modoperator;
    }

    /** default constructor */
    public CUser() {
    }

    /** minimal constructor */
    public CUser(String username, Integer groupid, Date opendate, String openoperator) {
        this.username = username;
        this.groupid = groupid;
        this.opendate = opendate;
        this.openoperator = openoperator;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="USERNAME"
     *         
     */
    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /** 
     *            @hibernate.property
     *             column="REALM"
     *             length="48"
     *         
     */
    public String getRealm() {
        return this.realm;
    }

    public void setRealm(String realm) {
        this.realm = realm;
    }

    /** 
     *            @hibernate.property
     *             column="PASSWORD"
     *             length="32"
     *         
     */
    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /** 
     *            @hibernate.property
     *             column="PASSWORDTYPE"
     *             length="22"
     *         
     */
    public Integer getPasswordtype() {
        return this.passwordtype;
    }

    public void setPasswordtype(Integer passwordtype) {
        this.passwordtype = passwordtype;
    }

    /** 
     *            @hibernate.property
     *             column="GROUPID"
     *             length="22"
     *             not-null="true"
     *         
     */
    public Integer getGroupid() {
        return this.groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    /** 
     *            @hibernate.property
     *             column="ALLOWIPTECH"
     *             length="22"
     *         
     */
    public Integer getAllowiptech() {
        return this.allowiptech;
    }

    public void setAllowiptech(Integer allowiptech) {
        this.allowiptech = allowiptech;
    }

    /** 
     *            @hibernate.property
     *             column="AREANO"
     *             length="20"
     *         
     */
    public String getAreano() {
        return this.areano;
    }

    public void setAreano(String areano) {
        this.areano = areano;
    }

    /** 
     *            @hibernate.property
     *             column="BINDTYPE"
     *             length="22"
     *         
     */
    public Integer getBindtype() {
        return this.bindtype;
    }

    public void setBindtype(Integer bindtype) {
        this.bindtype = bindtype;
    }

    /** 
     *            @hibernate.property
     *             column="STATUS"
     *             length="22"
     *         
     */
    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /** 
     *            @hibernate.property
     *             column="AUTHORATTR"
     *             length="128"
     *         
     */
    public String getAuthorattr() {
        return this.authorattr;
    }

    public void setAuthorattr(String authorattr) {
        this.authorattr = authorattr;
    }

    /** 
     *            @hibernate.property
     *             column="MNHAKEY"
     *             length="20"
     *         
     */
    public String getMnhakey() {
        return this.mnhakey;
    }

    public void setMnhakey(String mnhakey) {
        this.mnhakey = mnhakey;
    }

    /** 
     *            @hibernate.property
     *             column="NOAUTHFLAG"
     *             length="22"
     *         
     */
    public Integer getNoauthflag() {
        return this.noauthflag;
    }

    public void setNoauthflag(Integer noauthflag) {
        this.noauthflag = noauthflag;
    }

    /** 
     *            @hibernate.property
     *             column="IMSI"
     *             length="15"
     *         
     */
    public String getImsi() {
        return this.imsi;
    }

    public void setImsi(String imsi) {
        this.imsi = imsi;
    }

    /** 
     *            @hibernate.property
     *             column="MDN"
     *             length="20"
     *         
     */
    public String getMdn() {
        return this.mdn;
    }

    public void setMdn(String mdn) {
        this.mdn = mdn;
    }

    /** 
     *            @hibernate.property
     *             column="USERTYPE"
     *             length="22"
     *         
     */
    public Integer getUsertype() {
        return this.usertype;
    }

    public void setUsertype(Integer usertype) {
        this.usertype = usertype;
    }

    /** 
     *            @hibernate.property
     *             column="CHARGETYPE"
     *             length="22"
     *         
     */
    public Integer getChargetype() {
        return this.chargetype;
    }

    public void setChargetype(Integer chargetype) {
        this.chargetype = chargetype;
    }

    /** 
     *            @hibernate.property
     *             column="BALANCE"
     *             length="22"
     *         
     */
    public Integer getBalance() {
        return this.balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    /** 
     *            @hibernate.property
     *             column="FRAMEDIP"
     *             length="15"
     *         
     */
    public String getFramedip() {
        return this.framedip;
    }

    public void setFramedip(String framedip) {
        this.framedip = framedip;
    }

    /** 
     *            @hibernate.property
     *             column="IPPOOL"
     *             length="20"
     *         
     */
    public String getIppool() {
        return this.ippool;
    }

    public void setIppool(String ippool) {
        this.ippool = ippool;
    }

    /** 
     *            @hibernate.property
     *             column="ROAMLEVEL"
     *             length="22"
     *         
     */
    public Integer getRoamlevel() {
        return this.roamlevel;
    }

    public void setRoamlevel(Integer roamlevel) {
        this.roamlevel = roamlevel;
    }

    /** 
     *            @hibernate.property
     *             column="LIMITUSERS"
     *             length="22"
     *         
     */
    public Integer getLimitusers() {
        return this.limitusers;
    }

    public void setLimitusers(Integer limitusers) {
        this.limitusers = limitusers;
    }

    /** 
     *            @hibernate.property
     *             column="OPENDATE"
     *             length="7"
     *             not-null="true"
     *         
     */
    public Date getOpendate() {
        return this.opendate;
    }

    public void setOpendate(Date opendate) {
        this.opendate = opendate;
    }

    /** 
     *            @hibernate.property
     *             column="OPENOPERATOR"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getOpenoperator() {
        return this.openoperator;
    }

    public void setOpenoperator(String openoperator) {
        this.openoperator = openoperator;
    }

    /** 
     *            @hibernate.property
     *             column="MODDATE"
     *             length="7"
     *         
     */
    public Date getModdate() {
        return this.moddate;
    }

    public void setModdate(Date moddate) {
        this.moddate = moddate;
    }

    /** 
     *            @hibernate.property
     *             column="MODOPERATOR"
     *             length="20"
     *         
     */
    public String getModoperator() {
        return this.modoperator;
    }

    public void setModoperator(String modoperator) {
        this.modoperator = modoperator;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("username", getUsername())
            .toString();
    }

}
